.clear-fix::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    clear: both;
}

.x-editor {
    width: 100%;
}

.x-editor * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.x-editor .x-editor-toolbar {
    height: 32px;
    padding: 3px 25px;
    border: 1px solid #a0a0a0;
    border-radius: 3px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.x-editor .x-editor-content {
    line-height: 1.8;
    width: 100%;
    min-height: 300px;
    padding: 10px 15px 0;
    overflow: auto;
    border: 1px solid #a0a0a0;
    border-top: none;
    outline: none;
}

.x-editor .x-editor-content:empty::before {
    content: attr(placeholder);
    color: #ccc;
    font-size: 14px;
}

.x-editor .x-editor-toolbar li {
    list-style-type: none;
    width: 25px;
    height: 25px;
    position: relative;
    float: left;
    margin-right: 8px;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.x-editor .x-editor-toolbar li:hover {
    box-shadow: 0 0 2px#000;
}

.x-editor .x-editor-toolbar li .icon {
    width: 1em;
    height: 1em;
    font-size: 20px;
    fill: currentColor;
    pointer-events: none;
}

.x-editor .plugin-popover {
    width: 197px;
    position: absolute;
    left: 0;
    top: 25px;
    padding: 10px;
    background-color: #fff;
    z-index: 1;
    border: 1px solid #a0a0a0;
    border-radius: 3px;
    display: none;
}

.x-editor .plugin-popover li {
    list-style-type: none;
    width: 100%;
    height: 20px;
    margin: 2px 0;
    cursor: pointer;
    user-select: none;
}

.x-editor .plugin-popover.plugin-popover-color li:nth-of-type(8n + 1) {
    margin-left: 0;
}

.x-editor .plugin-popover.plugin-popover-color li {
    width: 20px;
    height: 20px;
    float: left;
    margin-left: 2px;
    border: 1px solid #000;
}

.x-editor .plugin-popover.plugin-popover-heading {
    padding: 0;
}

.x-editor .plugin-popover.plugin-popover-heading li {
    margin: 5px 0;
    height: unset;
    padding-left: 15px;
}

.x-editor .plugin-popover.plugin-popover-heading li:hover {
    background-color: #ccc;
}

.x-editor .plugin-popover.plugin-popover-color input {
    padding: 0 20px;
    outline: none;
    width: 100px;
    height: 20px;
    border-radius: 3px;
}

.x-editor .plugin-popover.plugin-popover-color .button-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.x-editor .plugin-popover.plugin-popover-color input:focus {
    border: 1px solid #55c580;
}

.x-editor .plugin-popover.plugin-popover-color input[type=button] {
    padding: 0;
    width: 40px;
    line-height: 20px;
    text-align: center;
}

.x-editor .plugin-popover.plugin-popover-color input[type=color] {
    padding: 0;
    width: 20px;
}

.x-editor .plugin-popover.plugin-popover-active {
    display: block;
}